﻿@model MobileSales.Model.Tasks.CyclicTask

@{
    View.Title = Strings.CyclicTasks + " - " + Strings.Details;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.CyclicTasks &nbsp;&raquo;&nbsp; @Strings.Details</h2>

<fieldset>
    <legend>@Strings.Fields</legend>

    <div class="display-label">@ModelStrings.TaskInterval</div>
    <div class="display-field">@Model.TaskInterval</div>

    <div class="display-label">@ModelStrings.Client</div>
    <div class="display-field">@Html.ClientIdentity(Model.ClientId.HasValue ? Model.ClientId.Value : 0)</div>

    <div class="display-label">@ModelStrings.Info</div>
    <div class="display-field">@Model.Info</div>

    <div class="display-label">@ModelStrings.Priority</div>
    <div class="display-field">@Model.Priority</div>

    <div class="display-label">@ModelStrings.CreationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreationDate)</div>
    
    <div class="display-label">@ModelStrings.StartTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.StartTime)</div>

    <div class="display-label">@ModelStrings.EndTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.EndTime)</div>

    <div class="display-label">@ModelStrings.TaskStatus</div>
    <div class="display-field">@Model.TaskStatus.Name</div>
    
    <div class="display-label">@ModelStrings.TaskType</div>
    <div class="display-field">@Model.TaskType.Name</div>
</fieldset>
<p>
    @Html.ActionLink(Strings.Edit, "Edit", new { id = Model.Id }, new { @class = "icon-button edit-icon" }) |
    @Html.ActionLink(Strings.BackToList, "Index", new { employeeId = Model.EmployeeId }, new { @class = "icon-button prev-icon" })
</p>
